package com.candy.candylogservice.service;

import com.candy.candycommon.utils.ResultBean;
import com.candy.candylogservice.dto.LogLinkDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(contextId = "logLink", value = "candy-log", path = "logLink")
public interface LogLinkService {

    @PostMapping("save")
    ResultBean save(@RequestBody LogLinkDTO logLinkDTO);

    @PostMapping("save")
    ResultBean saveBatch(@RequestBody List<LogLinkDTO> logLinkDTO);

    // @SpringQueryMap 解决表单方式传参

}
